﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace DesignPatternToolkit.Wizard.WizardPages
{
	public class WizardPageBase : UserControl
	{
		public virtual bool NextButtonVisible { get { return true; } }
		public virtual bool PreviousButtonVisible { get { return true; } }
		public virtual bool IsFirstPage { get { return false; } }
		public virtual bool IsFinalPage { get { return false; } }
		public virtual string NextButtonText { get { return "Next"; } }
		public virtual string PreviousButtonText { get { return "Previous"; } }

		/// <summary>
		/// Called before the control is visually loaded in the wizard.
		/// </summary>
		/// <returns></returns>
		public virtual void BeforeLoad()
		{ }

		/// <summary>
		/// Called when this page is about to be unloaded.
		/// </summary>
		public virtual void BeforeUnload()
		{ }
	}
}
